package com.pig4cloud.pigx.strategy.bo.okx;

import com.pig4cloud.pigx.strategy.bo.StrategyTaskContractCacheBO;
import com.pig4cloud.pigx.strategy.dto.StrategySyncOrderMsgDTO;
import com.pig4cloud.pigx.strategy.dto.StrategySyncStopOrderMsgDTO;
import com.pig4cloud.pigx.strategy.entity.StrategyContract;
import com.pig4cloud.pigx.strategy.entity.StrategyStopOrderContract;
import com.pig4cloud.pigx.strategy.entity.StrategyTaskContract;
import lombok.Data;

import java.io.Serializable;

/**
 * 同步止盈止损BO
 *
 * @since 2022/11/29 17:16
 */
@Data
public class SyncStopOrderBO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * mq消息
     */
    private StrategySyncStopOrderMsgDTO msg;

    /**
     * 任务缓存
     */
    private StrategyTaskContractCacheBO taskCache;

    /**
     * 策略
     */
    private StrategyContract strategy;

    /**
     * 任务
     */
    private StrategyTaskContract task;

    /**
     * 同步是否成功
     */
    private Boolean isSuccess;

    /**
     * 同步后的止盈止损信息
     */
    private StrategyStopOrderContract stopOrder;

    /**
     * 同步订单消息
     */
    private StrategySyncOrderMsgDTO<PlaceOrderBO> syncOrderMsg;
}
